import BalanceList from "./BalanceList";
import BalanceListIncome from "./BalanceListIncome";
import BalanceListPay from "./BalanceListPay";
import BalanceListFrozen from "./BalanceListFrozen";
import authCheck from '@/tool/authCheck';
import BalanceListGather from "./BalanceListGather";

export const _path = [
    { path: '', component: BalanceList },
    { path: '/收入', component: BalanceListIncome },
    { path: '/支出', component: BalanceListPay },
    { path: '/冻结', component: BalanceListFrozen },
    { path: '/收款', component: BalanceListGather }
];

export const path = () => {
    if (!authCheck('*', '财务')) return [];
    return _path;
};

export const pathName = '财务';